// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently.
// export { appTasks } from '@ohos/hvigor-ohos-plugin';

import { appTasks } from '@ohos/hvigor-ohos-plugin';

export default {
  system: appTasks,
  plugins: []
}

export function ohos() {
  hapTasks.register({
    buildType: {
      debug: {
        preload: true,
        hapPath: 'build',
        args: "-DbuildType=debug" // 注入debug环境变量
      },
      release: {
        preload: true,
        hapPath: 'build',
        args: "-DbuildType=release" // 注入release环境变量
      }
    }
  })
}